package com.chen.common.scheduler.config;

/**
 * @author: ~龙~
 * @DATE: 2023/10/31
 **/
public class JobUtil {

    /**
     * 线程本地变量，用于存放job参数
     */
    private static final ThreadLocal<String> PARAMS = new ThreadLocal<>();

    public static void set(String param){
        PARAMS.set(param);
    }

    public static String get(){
        return PARAMS.get();
    }

    public static void del(){
        PARAMS.remove();
    }

}
